package com.bgs.controller;

import com.bgs.pojo.Caozuo;
import com.bgs.pojo.Resume;
import com.bgs.pojo.Yuan;
import com.bgs.service.jianliService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;


@RestController
@RequestMapping("jianli")

public class jianliController {
    @Autowired
    private jianliService jianliService;

    @RequestMapping("findAll")
    public List<Resume> findAll(){
    return jianliService.findAll();
    }
    @RequestMapping("findById")
    public List<Resume> findById(Integer rid){
        return jianliService.findById(rid);
    }
    @RequestMapping("tongguo")
    public Boolean tongguo(Integer status, Integer rid){
        return jianliService.tongguo(status,rid);
    }
    @RequestMapping("taotai")
    public Boolean taotai(Integer rid, String remarks, String reason, Boolean rencai){
        return jianliService.taotai(rid,remarks,reason,rencai);
    }
    @RequestMapping("update")
    public Boolean update(@RequestBody Resume resume){

        return jianliService.update(resume);
    }
    @RequestMapping("delete")
    public Boolean delete(Integer rid){
        return jianliService.delete(rid);
    }
    @RequestMapping("find")
    public int find(){
        return jianliService.find();
    }

    @RequestMapping("tian")
    public Boolean tian(@RequestBody Resume resume){
        return jianliService.tian(resume);
    }

    @RequestMapping("caozuo")
    public Boolean caozuo(@RequestBody Resume resume){
        return jianliService.caozuo(resume);
    }
    @RequestMapping("findCao")
    public List<Caozuo> findCao(Integer rid){
        return jianliService.findCao(rid);
    }
}
